package com.patchmanage.back.service;

import cn.hutool.core.lang.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import com.patchmanage.back.entity.Admin;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author huizhao
 * @since 2021-03-20
 */
public interface IAdminService extends IService<Admin> {

    public Dict login(Dict dict);

    public Admin getByToken(Dict dict);

    public Boolean registe(Admin entity);

    public Boolean checkVerificationCode(Dict dict);

    public Boolean setNewPassword(Dict dict);

    public void getVerifyCode(HttpServletRequest request, HttpServletResponse response) throws IOException;
}
